.class public Les/j8;
.super Ljava/lang/Object;
.source "DecorationDrawer.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/j8$b;
    }
.end annotation


# instance fields
.field private a:I

.field private b:I

.field private c:I

.field private d:I

.field private e:I

.field private f:Ljava/nio/IntBuffer;

.field private g:Lcom/esfile/screen/recorder/media/util/y;

.field private h:Les/p7$a;

.field private i:[F

.field private final j:Ljava/nio/FloatBuffer;

.field private k:[S

.field private final l:Ljava/nio/ShortBuffer;

.field private m:Les/f8;

.field private final n:[F

.field private final o:[F

.field private final p:Les/j8$b;


# direct methods
.method public constructor <init>(Les/f8;)V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, -0x1

    .line 2
    iput v0, p0, Les/j8;->a:I

    const/4 v0, 0x1

    .line 3
    invoke-static {v0}, Ljava/nio/IntBuffer;->allocate(I)Ljava/nio/IntBuffer;

    move-result-object v0

    iput-object v0, p0, Les/j8;->f:Ljava/nio/IntBuffer;

    .line 4
    new-instance v0, Lcom/esfile/screen/recorder/media/util/y;

    const/4 v1, 0x0

    invoke-direct {v0, v1, v1}, Lcom/esfile/screen/recorder/media/util/y;-><init>(II)V

    iput-object v0, p0, Les/j8;->g:Lcom/esfile/screen/recorder/media/util/y;

    .line 5
    new-instance v0, Les/p7$a;

    const/high16 v1, 0x3f800000    # 1.0f

    const/high16 v2, -0x40800000    # -1.0f

    invoke-direct {v0, v2, v1, v2, v1}, Les/p7$a;-><init>(FFFF)V

    iput-object v0, p0, Les/j8;->h:Les/p7$a;

    const/16 v0, 0x8

    new-array v0, v0, [F

    .line 6
    fill-array-data v0, :array_0

    iput-object v0, p0, Les/j8;->i:[F

    .line 7
    invoke-static {v0}, Lcom/esfile/screen/recorder/media/glutils/b;->a([F)Ljava/nio/FloatBuffer;

    move-result-object v0

    iput-object v0, p0, Les/j8;->j:Ljava/nio/FloatBuffer;

    const/4 v0, 0x6

    new-array v0, v0, [S

    .line 8
    fill-array-data v0, :array_1

    iput-object v0, p0, Les/j8;->k:[S

    .line 9
    invoke-static {v0}, Lcom/esfile/screen/recorder/media/glutils/b;->a([S)Ljava/nio/ShortBuffer;

    move-result-object v0

    iput-object v0, p0, Les/j8;->l:Ljava/nio/ShortBuffer;

    const/16 v0, 0x10

    new-array v1, v0, [F

    .line 10
    iput-object v1, p0, Les/j8;->n:[F

    new-array v0, v0, [F

    .line 11
    iput-object v0, p0, Les/j8;->o:[F

    .line 12
    new-instance v0, Les/j8$b;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Les/j8$b;-><init>(Les/j8;Les/j8$a;)V

    iput-object v0, p0, Les/j8;->p:Les/j8$b;

    .line 13
    iput-object p1, p0, Les/j8;->m:Les/f8;

    return-void

    :array_0
    .array-data 4
        0x0
        0x0
        0x0
        0x3f800000    # 1.0f
        0x3f800000    # 1.0f
        0x3f800000    # 1.0f
        0x3f800000    # 1.0f
        0x0
    .end array-data

    :array_1
    .array-data 2
        0x0s
        0x1s
        0x2s
        0x2s
        0x3s
        0x0s
    .end array-data
.end method

.method private static a(ILjava/lang/String;)I
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/RuntimeException;
        }
    .end annotation

    .line 33
    invoke-static {p0}, Landroid/opengl/GLES20;->glCreateShader(I)I

    move-result p0

    if-eqz p0, :cond_1

    const/4 v0, 0x1

    new-array v0, v0, [I

    .line 34
    invoke-static {p0, p1}, Landroid/opengl/GLES20;->glShaderSource(ILjava/lang/String;)V

    .line 35
    invoke-static {p0}, Landroid/opengl/GLES20;->glCompileShader(I)V

    const p1, 0x8b81

    const/4 v1, 0x0

    .line 36
    invoke-static {p0, p1, v0, v1}, Landroid/opengl/GLES20;->glGetShaderiv(II[II)V

    .line 37
    aget p1, v0, v1

    if-eqz p1, :cond_0

    return p0

    .line 38
    :cond_0
    invoke-static {p0}, Landroid/opengl/GLES20;->glDeleteShader(I)V

    .line 39
    new-instance p1, Ljava/lang/RuntimeException;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Error compile shader: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 40
    invoke-static {p0}, Landroid/opengl/GLES20;->glGetShaderInfoLog(I)Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-direct {p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 41
    :cond_1
    new-instance p0, Ljava/lang/RuntimeException;

    const-string p1, "Error create shader."

    invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)I
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/RuntimeException;
        }
    .end annotation

    const v0, 0x8b31

    .line 19
    invoke-static {v0, p1}, Les/j8;->a(ILjava/lang/String;)I

    move-result p1

    const v0, 0x8b30

    .line 20
    invoke-static {v0, p2}, Les/j8;->a(ILjava/lang/String;)I

    move-result p2

    .line 21
    invoke-static {}, Landroid/opengl/GLES20;->glCreateProgram()I

    move-result v0

    if-eqz v0, :cond_1

    .line 22
    invoke-static {v0, p1}, Landroid/opengl/GLES20;->glAttachShader(II)V

    .line 23
    invoke-static {v0, p2}, Landroid/opengl/GLES20;->glAttachShader(II)V

    .line 24
    invoke-static {v0}, Landroid/opengl/GLES20;->glLinkProgram(I)V

    const/4 v1, 0x1

    new-array v1, v1, [I

    const v2, 0x8b82

    const/4 v3, 0x0

    .line 25
    invoke-static {v0, v2, v1, v3}, Landroid/opengl/GLES20;->glGetProgramiv(II[II)V

    .line 26
    aget v1, v1, v3

    if-eqz v1, :cond_0

    .line 27
    invoke-static {p1}, Landroid/opengl/GLES20;->glDeleteShader(I)V

    .line 28
    invoke-static {p2}, Landroid/opengl/GLES20;->glDeleteShader(I)V

    return v0

    .line 29
    :cond_0
    invoke-static {v0}, Landroid/opengl/GLES20;->glDeleteProgram(I)V

    .line 30
    new-instance p1, Ljava/lang/RuntimeException;

    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Error linking mProgram: "

    invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 31
    invoke-static {v0}, Landroid/opengl/GLES20;->glGetProgramInfoLog(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 32
    :cond_1
    new-instance p1, Ljava/lang/RuntimeException;

    const-string p2, "Error create mProgram."

    invoke-direct {p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method private a(JLes/g8;)V
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalStateException;
        }
    .end annotation

    .line 42
    iget v0, p0, Les/j8;->a:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_4

    .line 43
    iget-object v0, p0, Les/j8;->p:Les/j8$b;

    invoke-virtual {v0, p3}, Les/j8$b;->a(Les/g8;)Les/l8;

    move-result-object v0

    const-string v1, "dder"

    if-nez v0, :cond_0

    const-string p1, "No DecorationTarget found"

    .line 44
    invoke-static {v1, p1}, Lcom/esfile/screen/recorder/media/util/k;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    .line 45
    :cond_0
    invoke-virtual {v0, p1, p2}, Les/l8;->b(J)V

    .line 46
    invoke-virtual {v0}, Les/l8;->f()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 47
    invoke-direct {p0, p1, p2, p3, v0}, Les/j8;->a(JLes/g8;Les/l8;)V

    return-void

    .line 48
    :cond_1
    iget-object v2, p0, Les/j8;->g:Lcom/esfile/screen/recorder/media/util/y;

    iget-object v3, p0, Les/j8;->h:Les/p7$a;

    invoke-virtual {v0, v2, v3}, Les/l8;->a(Lcom/esfile/screen/recorder/media/util/y;Les/p7$a;)Z

    move-result v2

    if-nez v2, :cond_2

    const-string v2, "Decoration elgSetup failed"

    .line 49
    invoke-static {v1, v2}, Lcom/esfile/screen/recorder/media/util/k;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 50
    invoke-direct {p0, p1, p2, p3, v0}, Les/j8;->a(JLes/g8;Les/l8;)V

    return-void

    .line 51
    :cond_2
    invoke-virtual {v0}, Les/l8;->i()I

    move-result v2

    if-gtz v2, :cond_3

    const-string v2, "Texture id <= 0"

    .line 52
    invoke-static {v1, v2}, Lcom/esfile/screen/recorder/media/util/k;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 53
    invoke-direct {p0, p1, p2, p3, v0}, Les/j8;->a(JLes/g8;Les/l8;)V

    return-void

    .line 54
    :cond_3
    invoke-virtual {v0}, Les/l8;->j()Ljava/nio/FloatBuffer;

    move-result-object v1

    .line 55
    invoke-virtual {v0}, Les/l8;->i()I

    move-result v2

    .line 56
    invoke-virtual {v0}, Les/l8;->h()[F

    move-result-object v7

    .line 57
    iget-object v3, p0, Les/j8;->o:[F

    const/4 v4, 0x0

    iget-object v5, p0, Les/j8;->n:[F

    const/4 v6, 0x0

    const/4 v8, 0x0

    invoke-static/range {v3 .. v8}, Landroid/opengl/Matrix;->multiplyMM([FI[FI[FI)V

    .line 58
    invoke-direct {p0}, Les/j8;->d()V

    .line 59
    iget v3, p0, Les/j8;->b:I

    invoke-static {v3}, Landroid/opengl/GLES20;->glEnableVertexAttribArray(I)V

    .line 60
    iget v3, p0, Les/j8;->c:I

    invoke-static {v3}, Landroid/opengl/GLES20;->glEnableVertexAttribArray(I)V

    .line 61
    iget v3, p0, Les/j8;->d:I

    const/4 v9, 0x0

    invoke-static {v3, v9}, Landroid/opengl/GLES20;->glUniform1i(II)V

    const/16 v3, 0xde1

    .line 62
    invoke-static {v3, v2}, Landroid/opengl/GLES20;->glBindTexture(II)V

    .line 63
    iget v2, p0, Les/j8;->e:I

    const/4 v3, 0x1

    iget-object v4, p0, Les/j8;->o:[F

    invoke-static {v2, v3, v9, v4, v9}, Landroid/opengl/GLES20;->glUniformMatrix4fv(IIZ[FI)V

    .line 64
    invoke-virtual {v1, v9}, Ljava/nio/FloatBuffer;->position(I)Ljava/nio/Buffer;

    .line 65
    iget v3, p0, Les/j8;->b:I

    const/4 v4, 0x3

    const/16 v5, 0x1406

    const/16 v7, 0xc

    move-object v8, v1

    invoke-static/range {v3 .. v8}, Landroid/opengl/GLES20;->glVertexAttribPointer(IIIZILjava/nio/Buffer;)V

    const/4 v2, 0x3

    .line 66
    invoke-virtual {v1, v2}, Ljava/nio/FloatBuffer;->position(I)Ljava/nio/Buffer;

    .line 67
    iget-object v1, p0, Les/j8;->j:Ljava/nio/FloatBuffer;

    invoke-virtual {v1, v9}, Ljava/nio/FloatBuffer;->position(I)Ljava/nio/Buffer;

    .line 68
    iget v2, p0, Les/j8;->c:I

    const/4 v3, 0x2

    const/16 v4, 0x1406

    const/4 v5, 0x0

    const/16 v6, 0x8

    iget-object v7, p0, Les/j8;->j:Ljava/nio/FloatBuffer;

    invoke-static/range {v2 .. v7}, Landroid/opengl/GLES20;->glVertexAttribPointer(IIIZILjava/nio/Buffer;)V

    .line 69
    iget-object v1, p0, Les/j8;->l:Ljava/nio/ShortBuffer;

    invoke-virtual {v1, v9}, Ljava/nio/ShortBuffer;->position(I)Ljava/nio/Buffer;

    const/4 v1, 0x4

    const/4 v2, 0x6

    const/16 v3, 0x1403

    .line 70
    iget-object v4, p0, Les/j8;->l:Ljava/nio/ShortBuffer;

    invoke-static {v1, v2, v3, v4}, Landroid/opengl/GLES20;->glDrawElements(IIILjava/nio/Buffer;)V

    .line 71
    invoke-direct {p0}, Les/j8;->c()V

    .line 72
    invoke-direct {p0, p1, p2, p3, v0}, Les/j8;->a(JLes/g8;Les/l8;)V

    return-void

    .line 73
    :cond_4
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "You should init DecorationDrawer first"

    invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method private a(JLes/g8;Les/l8;)V
    .locals 0

    .line 74
    invoke-virtual {p4, p1, p2}, Les/l8;->a(J)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 75
    invoke-virtual {p4}, Les/l8;->g()V

    goto :goto_0

    .line 76
    :cond_0
    iget-object p1, p0, Les/j8;->p:Les/j8$b;

    invoke-virtual {p1, p3, p4}, Les/j8$b;->a(Les/g8;Les/l8;)V

    :goto_0
    return-void
.end method

.method private b()V
    .locals 2

    const-string v0, "uniform mat4 u_MVPMatrix; \n \nattribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying vec2 v_texCoord; \nvoid main() \n{ \ngl_Position = u_MVPMatrix * a_position; \nv_texCoord = a_texCoord; \n} "

    const-string v1, "precision lowp float; \n \nvarying vec2 v_texCoord; \nuniform sampler2D u_samplerTexture; \nvoid main() \n{ \ngl_FragColor = texture2D(u_samplerTexture, v_texCoord); \n} "

    .line 1
    invoke-direct {p0, v0, v1}, Les/j8;->a(Ljava/lang/String;Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Les/j8;->a:I

    const-string v1, "a_position"

    .line 2
    invoke-static {v0, v1}, Landroid/opengl/GLES20;->glGetAttribLocation(ILjava/lang/String;)I

    move-result v0

    iput v0, p0, Les/j8;->b:I

    .line 3
    iget v0, p0, Les/j8;->a:I

    const-string v1, "a_texCoord"

    invoke-static {v0, v1}, Landroid/opengl/GLES20;->glGetAttribLocation(ILjava/lang/String;)I

    move-result v0

    iput v0, p0, Les/j8;->c:I

    .line 4
    iget v0, p0, Les/j8;->a:I

    const-string v1, "u_samplerTexture"

    invoke-static {v0, v1}, Landroid/opengl/GLES20;->glGetUniformLocation(ILjava/lang/String;)I

    move-result v0

    iput v0, p0, Les/j8;->d:I

    .line 5
    iget v0, p0, Les/j8;->a:I

    const-string v1, "u_MVPMatrix"

    invoke-static {v0, v1}, Landroid/opengl/GLES20;->glGetUniformLocation(ILjava/lang/String;)I

    move-result v0

    iput v0, p0, Les/j8;->e:I

    return-void
.end method

.method private b(II)V
    .locals 18

    move-object/from16 v0, p0

    move/from16 v1, p1

    int-to-float v1, v1

    move/from16 v2, p2

    int-to-float v2, v2

    div-float v6, v1, v2

    .line 6
    iget-object v1, v0, Les/j8;->h:Les/p7$a;

    neg-float v5, v6

    iput v5, v1, Les/p7$a;->a:F

    .line 7
    iput v6, v1, Les/p7$a;->c:F

    const/16 v1, 0x10

    new-array v2, v1, [F

    new-array v1, v1, [F

    const/4 v4, 0x0

    const/high16 v7, -0x40800000    # -1.0f

    const/high16 v8, 0x3f800000    # 1.0f

    const/high16 v9, 0x40400000    # 3.0f

    const/high16 v10, 0x40e00000    # 7.0f

    move-object v3, v2

    .line 8
    invoke-static/range {v3 .. v10}, Landroid/opengl/Matrix;->frustumM([FIFFFFFF)V

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    const v11, 0x40401062    # 3.001f

    const/4 v12, 0x0

    const/4 v13, 0x0

    const/4 v14, 0x0

    const/4 v15, 0x0

    const/high16 v16, 0x3f800000    # 1.0f

    const/16 v17, 0x0

    move-object v7, v1

    .line 9
    invoke-static/range {v7 .. v17}, Landroid/opengl/Matrix;->setLookAtM([FIFFFFFFFFF)V

    .line 10
    iget-object v7, v0, Les/j8;->n:[F

    const/4 v10, 0x0

    const/4 v12, 0x0

    move-object v9, v2

    move-object v11, v1

    invoke-static/range {v7 .. v12}, Landroid/opengl/Matrix;->multiplyMM([FI[FI[FI)V

    .line 11
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "new "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, v0, Les/j8;->h:Les/p7$a;

    invoke-virtual {v2}, Les/p7$a;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "dder"

    invoke-static {v2, v1}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private c()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/j8;->f:Ljava/nio/IntBuffer;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Ljava/nio/IntBuffer;->get(I)I

    move-result v0

    invoke-static {v0}, Landroid/opengl/GLES20;->glUseProgram(I)V

    return-void
.end method

.method private d()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/j8;->f:Ljava/nio/IntBuffer;

    const v1, 0x8b8d

    invoke-static {v1, v0}, Landroid/opengl/GLES20;->glGetIntegerv(ILjava/nio/IntBuffer;)V

    .line 2
    iget v0, p0, Les/j8;->a:I

    invoke-static {v0}, Landroid/opengl/GLES20;->glUseProgram(I)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 8
    iget v0, p0, Les/j8;->a:I

    if-lez v0, :cond_0

    .line 9
    invoke-static {v0}, Landroid/opengl/GLES20;->glDeleteProgram(I)V

    :cond_0
    const/4 v0, -0x1

    .line 10
    iput v0, p0, Les/j8;->a:I

    .line 11
    iget-object v0, p0, Les/j8;->p:Les/j8$b;

    invoke-virtual {v0}, Les/j8$b;->a()V

    return-void
.end method

.method public a(II)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    if-lez p1, :cond_0

    if-lez p2, :cond_0

    .line 1
    invoke-virtual {p0}, Les/j8;->a()V

    .line 2
    iget-object v0, p0, Les/j8;->g:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/media/util/y;->b(I)V

    .line 3
    iget-object v0, p0, Les/j8;->g:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v0, p2}, Lcom/esfile/screen/recorder/media/util/y;->a(I)V

    .line 4
    invoke-direct {p0}, Les/j8;->b()V

    .line 5
    invoke-direct {p0, p1, p2}, Les/j8;->b(II)V

    return-void

    .line 6
    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "width "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, " <= 0 || height "

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, " <= 0"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public a(J)V
    .locals 4

    .line 12
    iget-object v0, p0, Les/j8;->m:Les/f8;

    invoke-virtual {v0, p1, p2}, Les/f8;->b(J)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 13
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_1

    const/16 v1, 0xbe2

    .line 14
    invoke-static {v1}, Landroid/opengl/GLES20;->glEnable(I)V

    const/4 v2, 0x1

    const/16 v3, 0x303

    .line 15
    invoke-static {v2, v3}, Landroid/opengl/GLES20;->glBlendFunc(II)V

    .line 16
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/g8;

    .line 17
    invoke-direct {p0, p1, p2, v2}, Les/j8;->a(JLes/g8;)V

    goto :goto_0

    .line 18
    :cond_0
    invoke-static {v1}, Landroid/opengl/GLES20;->glDisable(I)V

    :cond_1
    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 7
    iget-object v0, p0, Les/j8;->j:Ljava/nio/FloatBuffer;

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/media/glutils/b;->a(Ljava/nio/FloatBuffer;Z)V

    return-void
.end method
